#ifndef _Pirana_h_
#define _Pirana_h_
#include<windows.h>
#include "Sprite.h"
class CPirana
{
	float x;
	float y;
	int ytop;
	int ybottom;
	int width;
	int height;
	float vx;
	float vy;
	bool moveup;
	//bool moveleft;
	CSprite *Pirana;
	
	 //CSprite *PushedGoomba;
public:
	CPirana(float x,float y,int width,int height);
	~CPirana();
//	void BePushed();
	bool isover;
	RECT getRECT();
	void Move(int time);
	int CollisionWithMario(bool is_star_man,RECT marioRect,int direction);
	void Render(LPD3DXSPRITE sprite,LPDIRECT3DTEXTURE9 image,int time,int xcamara);
};
#endif
